package com.ruoyi.web.service;

import com.ruoyi.common.core.domain.entity.SysTask;
import com.ruoyi.web.model.ChatBase;
import com.ruoyi.web.model.Net2MqttJG1;

/**
 * @ProjectName: mqtt
 * @Package: com.starnet.device.service
 * @ClassName: DeviceServiceInterface
 * @Description: java类作用描述
 * @Author: mengxiabing
 * @CreateDate: 2022-07-25 15:19
 * @UpdateUser: 更新者
 * @UpdateDate: 2022-07-25 15:19
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public interface DeviceServiceInterface {
    void publish(String topic, String data);
    void unPackData(String s,String payload);
    void parasChat(String userId, ChatBase chat);
    void net2MqttJG1(String userId, ChatBase chat);
    void net2MqttJG2(String userId, ChatBase chat);
    void net2MqttJG3(String userId, ChatBase chat);
    void net2MqttJG4(String userId, ChatBase chat);
    void heartBeat (String userId, ChatBase chat);
    void startTimer(String key);
    void stopTimer(String key);
    void userDisconnect(String userId);
    void applyControl(int isCloudControlAllowed,int control);
    void pushControlStatus(int isCloudControl);
    void startHeartbeat(String userId,String key);
    void stopHeartbeat(String userId,String key);
    void checkBoatOffline();
}
